#include "mainwindow.h"

#include <QApplication>
#include <connectionsqlite.h>
#include <dialog.h>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Dialog log;
    if(log.exec()==QDialog::Accepted)
    {if(!createConnection())
            return 1;
    MainWindow w;
    w.show();
    return a.exec();}
    return 0;
}
